package com.iweb.methoddemo;

public class MethodDemo4 {
    public static void main(String[] args) {
//        带参数方法的定义和调用
        getSum(10,20);
        getSum(1724,2141);
    }

    public static void getSum(int num1, int num2) {
        int result = num1 + num2;
        System.out.println(result);
    }
}
